package com.example.campus_order_sb.dto;

import com.example.campus_order_sb.entity.Category;
import com.example.campus_order_sb.entity.Food;
import lombok.Data;
import java.util.List;

@Data
public class MenuResponse {
    private boolean success;
    private String message;
    private List<Category> categories;
    private List<Food> foods;

    public MenuResponse(List<Category> categories, List<Food> foods) {
        this.success = true;
        this.message = "获取菜单成功";
        this.categories = categories;
        this.foods = foods;
    }

    public MenuResponse(String message) {
        this.success = false;
        this.message = message;
        this.categories = null;
        this.foods = null;
    }
}